public class LabeledPoint2 extends Point2{
    private String color;
    public LabeledPoint2(String color,double x,double y){
        super(x,y);
        this.color=color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "LabeledPoint2{"+super.toString()+
                "color='" + color + '\'' +
                '}';
    }
}
